package com.iwhalecloud.citybrain.flow.platform.manager.domain.validate;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import javax.validation.Constraint;
import javax.validation.Payload;

/**
 * 校验表单控件编码是否唯一
 *
 * @author lilh
 * @date 2021/4/22 11:22
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = FormComponentCodeUniqueCheckValidator.class)
public @interface FormComponentCodeUniqueCheck {

    String message() default "表单控件编码不能重复";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
